package com.situ.vivamarket.dao;

import com.situ.vivamarket.model.Admin;
import com.situ.vivamarket.model.Member;
import com.situ.vivamarket.model.search.AdminSearchBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminDao {
    List<Admin> findAll(AdminSearchBean asb);

    Admin findByName(String name);

    int deleteByIds(Integer[] ids);


    int insert(Admin admin);

    Admin findById(Integer id);

    int update(Admin admin);

    int patch(Admin admin);
}
